import { request } from '@pkg/request/src';

export enum Api {
  page = '/tourRoute/page',
  tourRouteList = '/tourRoute/list',
  get = '/tourRoute/get',
  add = '/tourRoute/save',
  update = '/tourRoute/update',
  remove = '/tourRoute/remove',
}

export const tourRouteList = params =>
  request.get(
    { url: Api.tourRouteList, params },
    {
      errorMessageMode: 'none',
      successMessageMode: 'none',
    },
  );

export const get = params =>
  request.get(
    {
      url: Api.get,
      params: params,
    },
    { errorMessageMode: 'none', successMessageMode: 'none' },
  );
